package demo;

public class Task implements Runnable {

  @Override
  public void run() {
    System.out.println("[task]run function is in Thread:" + Thread.currentThread().getName());

    for (int i = 0; i < 3; i++) {
      System.out.println("[task]Thread "+ Thread.currentThread().getName()+" print:" + i);
    }
  }
}
